package com.haoshuang.zhouzhoubang.model.bean

data class OrderShopBean(
    val cartInfo: List<CartInfo>,
    val orderKey: String?,
    val priceGroup: PriceGroup,
    val userAddress: UserAddress,
    val pickup_address: String?, // 自提地址
    val welfare: WelfareBean?, // 平台福利
) {
    data class CartInfo(
        val cart_num: Int,
        val id: Int,
        val image: String,
        val postage: String,
        val price: String,
        val product_id: Int,
        val store_name: String,
        val trueStock: Int,
        val uid: Int,
        val select_spec: String,
    )

    data class PriceGroup(
        val allPrice: String,
        val goodsPostage: String,
        val totalPrice: String
    )

    data class UserAddress(
        val city: String,
        val detail: String,
        val district: String,
        val id: Int,
        val phone: String,
        val province: String,
        val real_name: String,
        val uid: Int
    )

    data class WelfareBean(
        val can_use: MutableList<WelfareItemBean>?,
        val can_not_use: MutableList<WelfareItemBean>?,
    )

    data class WelfareItemBean(
        val id: Int?,
        val welfare_name: String?,
        val number: Int?,
        var choosed: Boolean? = false,
    )
}